﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using ConstructionBidOnline.Biz;

public partial class admin_DashBoard : System.Web.UI.Page
{

    #region Constants

    private const string PROP_DATASRC_NOTIFICATION = "__Notification::Notification";

    #endregion

    #region Public Properties

    public NotificationsCollection DataSourceNotification
    {
        get { return (SessionMgr.Session[PROP_DATASRC_NOTIFICATION] is NotificationsCollection ? (NotificationsCollection)SessionMgr.Session[PROP_DATASRC_NOTIFICATION] : (NotificationsCollection)(SessionMgr.Session[PROP_DATASRC_NOTIFICATION] = new NotificationsCollection())); }
        set { SessionMgr.Session[PROP_DATASRC_NOTIFICATION] = value; }
    }

    #endregion

    #region Event Handlers

    #region Page Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Password_Change_Required"] != null)
        {
            if (Session["Password_Change_Required"].ToString() == "True")
                radWin.VisibleOnPageLoad = true;
        }
        else
        {
            Response.Redirect("sessionexpire.aspx");
        }

        DataSourceNotification = Notifications.GetCompleteNotifications();        
    }

    #endregion

    #endregion

}
